/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.skjeffrey.creational.staticfactorymethod;

/**
 *
 * @author x
 */
public class StaticFactoryMethodFactory {
    public static StaticFactoryMethod createInstance(String type){
        if(type.equalsIgnoreCase("Standard")){
            return new Standard();
        }else{
            System.err.println("Invalid type.");
        }

        return null;
    }
}
